﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Manager.Master" AutoEventWireup="true"
    CodeBehind="Index.aspx.cs" Inherits="Enterprise.UI.Web.Manage.Role.Index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" type="text/javascript" src="../Common/js/global.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <Ent:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server" HeadTitleTxt="系统角色">
    </Ent:HeadMenuWebControls>
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr height="32px">
            <td align="right">
                筛选角色类型:<asp:DropDownList ID="rType" runat="server" Width="120">
                    <asp:ListItem Text="" Value=""></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="GridView1" runat="server" DataKeyNames="ROLEID" AutoGenerateColumns="false"
                    OnRowDataBound="GridView1_OnRowDataBound" OnRowCommand="GridView1_OnRowCommand">
                    <Columns>
                        <asp:TemplateField ItemStyle-Width="30">
                            <ItemTemplate>
                                <img src="../Common/img/arrow_142.gif" alt="" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:HyperLinkField DataTextField="rName" HeaderText="名称" DataNavigateUrlFields="ROLEID"
                            DataNavigateUrlFormatString="Detail.aspx?Id={0}" ItemStyle-HorizontalAlign="Left"
                            ItemStyle-Width="120" />
                        <asp:BoundField DataField="rType" HeaderText="类型" />
                        <asp:BoundField DataField="rRemark" HeaderText="说明" />
                        <asp:TemplateField ItemStyle-Width="90">
                            <ItemTemplate>
                                <a href="Edit.aspx?Id=<%#Eval("ROLEID") %>">修改</a>
                                <asp:LinkButton ID="LinkButton3" CommandName="mDelete" CommandArgument='<%#Container.DataItemIndex  %>'
                                    OnClientClick="return confirm('确定要删除该用户？删除将无法恢复')" runat="server">删除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
</asp:Content>
